import java.awt.Color;
import java.util.ArrayList;


public class Player {
	public String userName;
	//icon
	public boolean isReadyToStart;
	public int turnOrder;
	public ArrayList<GamePiece> pieces;
	public Color color;	
	
	public Player() {
		super();
		pieces = new ArrayList<GamePiece>();
		color=Color.RED;
	}
	public Player(String userName, Color color) {
		super();
		pieces = new ArrayList<GamePiece>();
		this.userName = userName;
		this.color = color;
	}
	
	public GamePiece generatePiece(){
		GamePiece gp = new GamePiece();
		gp.setColor(color);
		pieces.add(gp);
		return gp;
	}
	
	public Color getColor() {
		return color;
	}
	
	public void setColor(Color color) {
		this.color = color;
	}
	
	public boolean isReadyToStart() {
		return isReadyToStart;
	}
	
	public void setReadyToStart(boolean isReadyToStart) {
		this.isReadyToStart = isReadyToStart;
	}
	
	public ArrayList<GamePiece> getPieces() {
		return pieces;
	}
	
	public void addPiece(GamePiece piece) {
		pieces.add(piece);
	}
	
	public int getTurnOrder() {
		return turnOrder;
	}
	
	public void setTurnOrder(int turnOrder) {
		this.turnOrder = turnOrder;
	}
	
	public String getUserName() {
		return userName;
	}
	public void setUserName(String userName) {
		this.userName = userName;
	}
	
	public boolean isLocalPlayer()
	{
		return false;
	}
	
	public boolean isRemotePlayer()
	{
		return false;
	}
	
	public boolean isHostPlayer()
	{
		return false;
	}
}
